#ifndef __ITEMSELECTIONWIDGET__H
#define __ITEMSELECTIONWIDGET__H

#include <QDialog>
#include <map>


class QLineEdit;

class ItemSelectionDialog : public QDialog
{
	Q_OBJECT
public:
	ItemSelectionDialog(QWidget* parent);
	virtual ~ItemSelectionDialog();
private:
	void initialize();
	void initializeMap();
private slots:
	void onLineTextChanged(const QString&);
public:
	void setPressedKey(int);
private:
	QLineEdit* edit_;

	std::map<int, char> keyMap_;

};
#endif//__ITEMSELECTIONWIDGET__H

